jQuery(document).ready(function(){
	$('.lineaDispositivo').each(function(index, item){
	  $(item).qtip({  
		  content: {
			  title: {
					text: 'Informacion del Dispositivo'
				},
			  text: 'Cargando...', // The text to use whilst the AJAX request is loading		  
		      ajax: {
		         url: '../servlet/Dispositivo', // URL to the local file
		         type: 'GET', // POST or GET
		         async: false,
		         data: { id: $(item).attr('id')}, // !! PROBLEM HERE
		         success: function(data, status) {
	
		            // Set the content manually (required!)
		            this.set('content.text', data);
		         }
		      }
		  },
		  position: {
			   my: 'left top',
			   at: 'right center',
			   target: $(item)
		  },		  
		  style: {
			  widget: false, // Removes the jQuery UI widget classes from the tooltip elements, preventing Themeroller styling
			  def: false, // Remove the default styling (not usually necessary)			  
			  classes: 'ui-tooltip-dark ui-tooltip-shadow'
		  }	  
	  });
	});
	});

jQuery(document).ready(function(){
	$('.lineaArea').each(function(index, item){
	  $(item).qtip({
	   content: {
		  title: {
					text: 'Informacion del Area'
				},
		  text: 'Cargando...', // The text to use whilst the AJAX request is loading
	      ajax: {
	         url: '../servlet/ServletArea', // URL to the local file
	         type: 'GET', // POST or GET
	         async: false,
	         data: { id: $(item).attr('id')}, // !! PROBLEM HERE
	         success: function(data, status) {

	            // Set the content manually (required!)
	            this.set('content.text', data);
	         }
	      }
	   },
	   position: {
		   my: 'right bottom',
		   at: 'left center',
		   target: $(item)
	   },
	   style: {
		  widget: false, // Removes the jQuery UI widget classes from the tooltip elements, preventing Themeroller styling
		  def: false, // Remove the default styling (not usually necessary)			  
		  classes: 'ui-tooltip-tipsy ui-tooltip-shadow'
	   }		  
	  });
	});
	});

jQuery(document).ready(function(){
	$('.lineaEvento').each(function(index, item){
	  $(item).qtip({
	   content: {
		  title: {
					text: 'Informacion del Evento'
				},
		  text: 'Cargando...', // The text to use whilst the AJAX request is loading
	      ajax: {
	         url: '../servlet/CreateNotificacion', // URL to the local file
	         type: 'GET', // POST or GET
	         async: false,
	         data: { id: $(item).attr('id')}, // !! PROBLEM HERE -> deberia mandarse asi.. idArea
	         success: function(data, status) {

	            // Set the content manually (required!)
	            this.set('content.text', data);
	         }
	      }
	   },
	   position: {
		   my: 'right bottom',
		   at: 'left center',
		   target: $(item)
	   },
	   style: {
		  widget: false, // Removes the jQuery UI widget classes from the tooltip elements, preventing Themeroller styling
		  def: false, // Remove the default styling (not usually necessary)			  
		  classes: 'ui-tooltip-tipsy ui-tooltip-shadow'
	   }		  
	  });
	});
	});